/*
 * @Description: 自定义指令
 * @Author: James324
 * @Date: 2023-08-21 22:38:16
 * @LastEditors: James324
 * @LastEditTime: 2024-03-21 15:29:37
 */
import { Directive, App } from 'vue';
import { scrollbar } from './scrollbar';
import { showtip } from './toolTip';

const directives = {
    scrollbar,
    showtip
};

export default {
    install(app: App) {
        Object.keys(directives).forEach(key => {
            app.directive(key, (directives as { [key: string]: Directive })[key]);
        });
    }
};
